package com.yjian.dao.mapper;

import com.yjian.dao.bean.PayLog;
import com.yjian.dao.provider.PayLogProvider;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.SelectProvider;

import java.util.List;
import java.util.Map;

/**
 * Created by xuxiaobao on 2017/9/27.
 */
@Mapper
public interface PayLogMapper {

    @SelectProvider(type = PayLogProvider.class, method = "getPayLogByMid")
    List<PayLog> getPayLogByMid(PayLog payLog);

    @SelectProvider(type = PayLogProvider.class, method = "getPayLogPageByMid")
    List<PayLog> getPayLogPageByMid(Map<String, Object> param);

    @InsertProvider(type = PayLogProvider.class, method = "savePayLog")
    int savePayLog(PayLog payLog);
}
